<div id="sfForumAction">
<div class='myforummenu'><a href="<?php echo url_for('sfForumMessage/new?topic_id='.$topic->getId()) ?>"><img src='/images/add_comment.png' />Новое сообщение</a></div> 
<?php if($sf_user->isAuthenticated()): ?> <?php if ($sf_user->getGuardUser()->getId()==$topic->getAuthor()): ?>
<div class='myforummenu'><a href="<?php echo url_for('sfForumTopic/edit?id='.$topic->getId()) ?>"><img src='/images/edit_page.png' />Редактировать тему</a></div> 
<?php endif; ?> <?php endif; ?> 
<div class='myforummenu'><a	href="<?php echo url_for('sfForumTopic/index?category_id='.$topic->getCategoryId()) ?>"><img src='/images/pages.png' />Список тем</a></div>
<?php if($sf_user->isAuthenticated()): ?> 
<div class='myforummenu'><a	href="<?php echo url_for('myaccount/index') ?>"><img src='/images/edit_profile.png' />Мой профайл</a></div>
<?php endif; ?> <?php if (!$sf_user->isAuthenticated()): ?> 
<?php echo '<div class="myforummenu">'. link_to('<img src="/images/accept.png" />Вход','@sf_guard_signin').'</div>' ?>
<?php else: ?> 
<?php echo '<div class="myforummenu">'. link_to('<img src="/images/block.png" />Выход', '@sf_guard_signout').'</div>' ?>
 <?php endif; ?>
<div class='forumsearch'><input class="searchtext" type="text"
	name="sfForumSearch" /> <input class="searchbutton" type="submit"
	name="sfForumSearchSubmit" value="Поиск" /></div>
</div>